﻿<UserControl x:Class="JuCloudy.Sys.App.AppInfo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:UserControls="clr-namespace:JuCloudy.Platform.UserControls;assembly=JuCloudy.Platform.UserControls"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="1000">

    <Grid x:Name="LayoutRoot" Background="White">
        <ScrollViewer  Margin="0,64,0,0" BorderBrush="{x:Null}" BorderThickness="0" Padding="0" >
            <sdk:DataGrid x:Name="_dg" BorderBrush="{x:Null}" BorderThickness="0" AutoGenerateColumns="False" SelectionChanged="_dg_SelectionChanged">
                <sdk:DataGrid.Columns>
                    <sdk:DataGridTextColumn  Header="应用Id" Binding="{Binding AppId}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="分类Id" Binding="{Binding CategoryId}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="应用名称"  Binding="{Binding AppName}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="应用说明" Binding="{Binding AppIntroduction}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="程序集名称" Binding="{Binding AppAssembly}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="应用主页名称" Binding="{Binding AppMainPageName}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="可见性" Binding="{Binding IsVisable}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="可用性" Binding="{Binding IsEnable}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="创建日期" Binding="{Binding CreateDate}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="创建者" Binding="{Binding CreateBy}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="上次编辑日期" Binding="{Binding LastUpdataDate}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="编辑者" Binding="{Binding LastUpdataBy}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    
                </sdk:DataGrid.Columns>
            </sdk:DataGrid>
        </ScrollViewer>
        <Grid VerticalAlignment="Top" Height="64" Background="#FFF7F8FA">
            <Rectangle VerticalAlignment="Bottom" Height="1" Fill="#FFDBE7EF"/>

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0">
                <UserControls:jButton x:Name="_insertbtn" Content="新建应用" Width="75" Height="34" Margin="0,0,15,0" FontSize="14"/>
                <UserControls:jButton x:Name="_updatabtn" Content="编辑应用" Width="75" Height="34" Margin="0,0,15,0" FontSize="14" IsEnabled="False"/>
                <UserControls:jButton x:Name="_deletebtn" Content="删除应用" Width="75" Height="34" Margin="0,0,15,0" FontSize="14" Background="#FFE51400" BorderBrush="#FFD61B09" IsEnabled="False"/>
                <Rectangle Fill="#3F000000" Width="1" Margin="5,0,20,0"></Rectangle>
                <UserControls:jButton x:Name="_uploadbtn" Content="上传/更新 应用包" Width="150" Height="34" Margin="0,0,15,0" FontSize="14" Background="#FF339933" BorderBrush="#FF42AE42" IsEnabled="False"/>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
